package edu.sctu.zhu.listener;

import edu.sctu.zhu.weixing.AccessTokenUtil;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * Created by zhu on 2016/5/4.
 */
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        AccessTokenUtil.refresh();
    }
}
